package com.winhxd.b2c.order.config;

import com.winhxd.b2c.order.service.impl.OrderMessageHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @author liuhanning
 * @className
 * @description  控制消费者有效 的环境（本地开发注释掉@Profile，但不要提交）
 */
@Configuration
@Profile({"test","prod"})
public class MessageHandlerConfig {
    @Bean
    public OrderMessageHandler orderMessageHandler(){
        return new OrderMessageHandler();
    }
}
